/**
  *@file sl_mm_signal.h
  *@descripter
  *	
  *@author fangjt  2012-06-22
  */

#ifndef __SL_MM_SIGNAL_H__
#define __SL_MM_SIGNAL_H__
#include "sl_jittery.h"
#include "sl_types.h"

typedef struct _mm_signal
{
	jittery_t jittery;
	BYTE *pMap_addr;
}mm_signal_t;

void sl_mm_signal_init(mm_signal_t *mm_signal, const BYTE *map_addr);

void sl_mm_signal_exit();

void sl_mm_signal_read(mm_signal_t *mm_signal);

WORD sl_mm_signal_get_switch_signal(mm_signal_t *mm_signal) ;

LEVEL sl_mm_signal_get_switch_signal_by_pin(mm_signal_t *mm_signal, BYTE pin);

#endif

